import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import * as myfun from './js/global'
import {
  Button, Collapse, CollapseItem, Dropdown, DropdownItem, DropdownMenu, Message,
  Input, Pagination, Table, TableColumn, Tag, Dialog, Select, Option, MenuItem, Menu,
  MenuItemGroup, Submenu, Breadcrumb, BreadcrumbItem, Avatar, Card, Row, Col, Container,
  Aside, Main, Header, Form, FormItem, Radio, RadioGroup, Switch, InputNumber, Tree, 
  PageHeader, MessageBox, DatePicker, Loading, Upload, Tooltip
} from "element-ui"

Vue.use(Container)
Vue.use(Aside)
Vue.use(Header)
Vue.use(Main)
Vue.use(Row)
Vue.use(Col)
Vue.use(Collapse)
Vue.use(CollapseItem)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)
Vue.use(Tag)
Vue.use(Button)
Vue.use(Table)
Vue.use(Input)
Vue.use(TableColumn)
Vue.use(Pagination)
Vue.use(Dialog)
Vue.use(Button)
Vue.use(Select)
Vue.use(Option)
Vue.use(MenuItem)
Vue.use(Submenu)
Vue.use(Menu)
Vue.use(MenuItemGroup)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Avatar)
Vue.use(Card)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(Switch)
Vue.use(InputNumber)
Vue.use(Tree)
Vue.use(PageHeader)
Vue.use(DatePicker)
Vue.use(Loading)
Vue.use(Upload)
Vue.use(Tooltip)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  created() {
    Vue.prototype.$bus = this,
      Vue.prototype.$message = Message,
      Vue.prototype.$myfun = myfun,
      Vue.prototype.$confirm = MessageBox.confirm

  },
  router,
  store
}).$mount('#app')
